package com.wfuhui.modules.oms.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;

/**
 * 优惠券
 *
 */
@ApiModel(value = "Coupon", description = "优惠券")
public class CouponEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	//
	private Integer id;
	// 名称
	@ApiModelProperty(value = "优惠券名称", name = "couponName", required = true)
	private String couponName;
	// 开始时间
	@JsonFormat(pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@ApiModelProperty(value = "开始时间", name = "beginTime", required = true)
	private Date beginTime;
	// 结束时间
	@JsonFormat(pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@ApiModelProperty(value = "结束时间", name = "endTime", required = true)
	private Date endTime;
	// 满
	@ApiModelProperty(value = "满", name = "moneyFull", required = true)
	private BigDecimal moneyFull;
	// 减
	@ApiModelProperty(value = "减", name = "moneyReduce", required = true)
	private BigDecimal moneyReduce;
	// 创建时间
	private Date createTime;

	private List<UserEntity> userList;
	
	private Integer storeId;

	/**
	 * 设置：
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * 获取：
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * 设置：名称
	 */
	public void setCouponName(String couponName) {
		this.couponName = couponName;
	}

	/**
	 * 获取：名称
	 */
	public String getCouponName() {
		return couponName;
	}

	/**
	 * 设置：开始时间
	 */
	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	/**
	 * 获取：开始时间
	 */
	public Date getBeginTime() {
		return beginTime;
	}

	/**
	 * 设置：结束时间
	 */
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	/**
	 * 获取：结束时间
	 */
	public Date getEndTime() {
		return endTime;
	}

	/**
	 * 设置：满
	 */
	public void setMoneyFull(BigDecimal moneyFull) {
		this.moneyFull = moneyFull;
	}

	/**
	 * 获取：满
	 */
	public BigDecimal getMoneyFull() {
		return moneyFull;
	}

	/**
	 * 设置：减
	 */
	public void setMoneyReduce(BigDecimal moneyReduce) {
		this.moneyReduce = moneyReduce;
	}

	/**
	 * 获取：减
	 */
	public BigDecimal getMoneyReduce() {
		return moneyReduce;
	}

	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}

	public List<UserEntity> getUserList() {
		return userList;
	}

	public void setUserList(List<UserEntity> userList) {
		this.userList = userList;
	}

	public Integer getStoreId() {
		return storeId;
	}

	public void setStoreId(Integer storeId) {
		this.storeId = storeId;
	}
}
